package com.wgt.observer.option_status;

/**
 * Created by wgt on 2017/6/19.
 */
public class SisiObserver extends WeatherObserver {

    public SisiObserver() {
        this.useStatus.add(WeatherSubject.SNOW);
        this.useStatus.add(WeatherSubject.RAIN);
    }

    @Override
    public void update(WGTObservable wgtObservable, String content) {
        if (content==null){
            throw new NullPointerException("content is null!");
        }
        System.out.println("Sisi收到天气预报信息："+content);
    }
}
